/*
 * Copyright (c) 2020. ForteScarlet All rights reserved.
 * Project  simple-robot-core
 * File     ExceptionHandle.java
 *
 * You can contact the author through the following channels:
 * github https://github.com/ForteScarlet
 * gitee  https://gitee.com/ForteScarlet
 * email  ForteScarlet@163.com
 * QQ     1149159218
 *
 */

package com.forte.qqrobot.listener.error;

/**
 * 异常处理器接口
 * @author <a href="https://github.com/ForteScarlet"> ForteScarlet </a>
 */
public interface ExceptionHandle {

    /**
     * 进行异常处理
     * @param context 异常捕获对象封装
     * @return  异常处理后的响应结果。
     */
    Object handle(ExceptionHandleContext context);


}
